package com.uh.microservice.core.service;

import com.uh.microservice.core.script.JScript;
import com.uh.microservice.core.util.LogUtil;

import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 将脚本引擎作为容器组件输出
 * Created by liming on 2017/10/10.
 */
@Component
public class ScriptComponent {
	LogUtil log = new LogUtil(this.getClass());
    /**
     *  具体的执行调用方法
     */
    public Object excute(String fun,Map param){
    	log.info("fun==========>:"+fun);
    	log.info("param==========>:"+param);
        Object result=JScript.getInstance().execute(fun,param);
        return result;
    }
}
